package com.star.langchain.learn.tools;

import java.time.LocalDate;

import dev.langchain4j.agent.tool.Tool;

import org.springframework.stereotype.Service;

@Service
public class DateTools {

    @Tool(name = "获取当前日期", value = "获取当前日期")
    String getCurrentDate() {

        return LocalDate.now().toString();
    }
}
